<%@LANGUAGE="VBSCRIPT" CODEPAGE="65001"%>
<!--#include file="../../../inc/conn.asp"-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title><%=shopping_title%></title>
<meta name="keywords" content="<%=shopping_key%>" />
<meta name="description" content="<%=shopping_desc%>" />
<link href="favicon.ico" rel="shortcut icon" type="image/x-icon"/>
<link rel="stylesheet" type="text/css" href="/css/style.css" />
<script type="text/javascript" src="/js/jquery.min.js"></script>
<script type="text/javascript" src="/js/jquery.tabs.js"></script>
<script type="text/javascript">
$(function(){
	$('.show_s_1').Tabs({
		event:'click'
	});
});	
</script>
<script type="text/javascript">
$(document).ready(function(){ 
	$('#select_1').change(function(){ 
		$('#search_1').val($(this).find("option:selected").text());
	});
}); 
$(function (){
  $(".main_class_li").hover(function(){
	$(".child_class",this).show();
  });
  $(".main_class_li").mouseleave(function(){
	$(".child_class",this).hide();
  });
});
</script>
<script>
$(function(){
	$(".ftoollist li").hover(function(){
			var $this = $(this);
			$this.addClass("on").siblings().removeClass("on");
			var $preNumber = $this.index();
			$(".fimglist li").removeClass("onpre");
			$(".fimglist li:eq($preNumber)").addClass("onpre");
			var distance = 602;
			distance = distance * $preNumber; 
			distance = distance * -1;
			$(".fimglist").stop().animate({marginLeft: distance + "px"}, {duration: 500});
	});
});
</script>
</head>
<body>


<!--#include file="../../common/topshopping.asp"-->




<div class="clear20"></div>
<!--main-->
<div class="fullwidth bg1">
	<div class="main">
		
        
       <!--#include file="common/left.asp"--> 
        
        	
		<div class="jp_middle">
			<div class="m_pic">
				<div class="focus">
					<div class="focusbox">         
						<div class="focusimg">
						<ul class="fimglist">
                            <%		
							set rsnewx=server.CreateObject("adodb.recordset")
							sql="select url,pic from ad where type=2 and mark=1 order by sort"
							rsnewx.open sql,conn,1,3
							if not rsnewx.eof then
							i=1
							do while not rsnewx.eof 
							%>
							<li><a target="_blank" href="<%=rsnewx("url")%>"><img src="<%=rsnewx("pic")%>" alt="" width="602" height="200" /></a></li>
							<%
							if i=1 then
							  adlist="<li class=""on""><a href=""javascript:;""><img src="""&rsnewx("pic")&"""></a></li>"
							else
							  adlist=adlist+"<li><a href=""javascript:;""><img src="""&rsnewx("pic")&"""></a></li>"
							end if
							
							i=i+1
							rsnewx.movenext
							loop
							rsnewx.close
							set rsnewx=nothing
							end if		 
							%>
						</ul>
						</div> 
						<div class="focustool">
						<ul class="ftoollist">
							<%=adlist%>
						</ul>
						</div>
					</div>
				</div>
			</div>
			<div class="jp_m_box_2">
				<div class="reg_box show_s_1">
					<ul class="tab_menu">
                    
                    
                    
                    
                    <%		
					  set rshelp=server.CreateObject("adodb.recordset")
			          sql="select top 6 pic,id,title from protype where istop=1 order by sort asc,id asc"
			          rshelp.open sql,conn,1,3
			          if not rshelp.eof then
					  i=1
			          do while not rshelp.eof
					  current=""
					  if i=1 then current="current "
					
					        tab_menu=tab_menu+"<li class='"&current&"dg_ico_"&i&"' style='background-image:url("&rshelp("pic")&");background-repeat:no-repeat;background-position:10px center;'>"&rshelp("title")&"<div class='t_arrow'></div></li>"
						    if i=1 then searchlist=searchlist+"<div>" else searchlist=searchlist+"<div class='hide'>"
						    searchlist=searchlist+"<div class=""clear20""></div><div class=""show_pro""><h3 class=""h3_1"">收藏之王，名品地带</h3>"

							set rsupdata=server.CreateObject("adodb.recordset")
							sql="select top 25 * from product where hot=1 and Delflag=1 and mark=1 and ([type]="&rshelp("id")&" or [type] in(select id from protype where fid="&rshelp("id")&") or [type] in(select id from protype where fid in(select id from protype where fid="&rshelp("id")&"))) order by sort asc,pid desc"

							rsupdata.open sql,conn,1,3
							if not rsupdata.eof then
							do while not rsupdata.eof
							   set rsc=conn.execute("select * from Source where istop=1 and pid="&rsupdata("pid")&"")
							searchlist=searchlist+ "<dl><dt><a href='/shopping/"&rsupdata("pid")&".html'><img src="""&rsupdata("pic")&""" width=""100"" height=""83"" /></a></dt><dd class=""now_price"">现价:"&rsc("price")&"円</dd><dd title='"&rsupdata("title")&"'><a href='/shopping/"&rsupdata("pid")&".html'>"&left(rsupdata("title"),22)&"</a></dd><dd class=""red"">现价:"&FormatNumber(cdbl(rsc("price"))*web_rate,2,-1)&"元</dd></dl>"
							   set rsc=nothing
							rsupdata.movenext
							loop
							rsupdata.close
							set rsupdata=nothing
							end if	
					        searchlist=searchlist+"</div><div class=""clear20""></div></div>"
					  
					  
					  
					  i=i+1
					  rshelp.movenext
			          loop
			          rshelp.close
			          set rshelp=nothing
			          end if
					  response.Write tab_menu		 
				      %>
                    
                    
                    
						<!--<li class="current dg_ico_1 ">古董<div class="t_arrow"></div></li>
						<li class="dg_ico_2">相机<div class="t_arrow"></div></li>
						<li class="dg_ico_3">手表<div class="t_arrow"></div></li>
						<li class="dg_ico_4">名牌包<div class="t_arrow"></div></li>
						<li class="dg_ico_5">母婴用品<div class="t_arrow"></div></li>
						<li class="dg_ico_6">玩具<div class="t_arrow"></div></li>-->
					</ul>
					<div class="tab_box">
						
                        <%=searchlist%>
						
					</div>
					<div class="clear20"></div>
					<div class="clear20"></div>
				</div>
			</div>
		</div>	
		
        
        
        
        
        <!--#include file="common/right.asp"--> 
        
        
        
        
        	
	</div>
</div>

<div class="clear"></div>



<!--#include file="../../common/footerauctions.asp"-->



</body>
</html>